import java.util.Scanner;
public class Test {
    public static void main(String[] args) {
        Student c=new Student();
        Teacher b=new Teacher();
        c.name="小明";
        c.course="数学";
        b.teach(c);
        int s=b.setScore(90);
        b.name="王老师";
        System.out.println(c.name+"得分"+c.getScore(b,s));
    }
}
